package com.yunji.coupon.bo;

import com.yunji.coupon.doamin.CouponDO;
import com.yunji.coupon.doamin.CouponTmplDO;
import lombok.Data;

import java.util.Date;

/**
 * @author : peter-zhu
 * @date : 2024/10/26 12:29
 * @description : TODO
 **/
@Data
public class CouponBO {
    private CouponTmplDO tmplDO;
    private CouponDO domain;
    private String reason;
    private boolean available;
    private Date sortTime;

    public CouponBO() {
    }

    public CouponBO(boolean available, String reason) {
        this.available = available;
        this.reason = reason;
    }

    public CouponBO(CouponTmplDO tmplDO, CouponDO domain) {
        this.tmplDO = tmplDO;
        this.domain = domain;
    }

    public CouponBO(CouponTmplDO tmplDO, CouponDO domain, String reason) {
        this.tmplDO = tmplDO;
        this.domain = domain;
        this.reason = reason;
    }

    public Date getNow() {
        return new Date();
    }
}
